#!/usr/bin/env python
#-*- coding:utf-8 -*-
'''
判断输入年份是否为闰年
'''
import types
def isLeapYear(year):
    if type(year) is types.StringType: return None
    if (year % 4 == 0 and year % 100 != 0) or (year % 4 == 0 and year % 100 == 0):
        return True
    else:
        return False
years = [2000,2001,2003,2004,2005,2006,2007,2008]
leapYear = filter(isLeapYear,years)
print leapYear
